package com.java.test.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.java.test.user.dto.UserInfo;
import com.java.test.user.mapper.UserMapper;
import com.java.test.user.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper userMapper;

	public UserInfo selectUser(String name, String password) {
		return userMapper.selectUserBynamePassword(name, password);
	}

	public List<UserInfo> selectAllUser(String name) {
		return userMapper.getAllUser(name);
	}

}
